<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台首页</title>
<link  href="<?=IMG_URL?>css/common.css" type="text/css" rel="stylesheet" />
<link  href="<?=IMG_URL?>css/index.css" type="text/css" rel="stylesheet" />
<link  href="<?=IMG_URL?>css/jquery.treeview.css" type="text/css" rel="stylesheet" />

<script src="<?=IMG_URL?>js/lib/jquery.js" type="text/javascript"></script>
<script src="<?=IMG_URL?>js/lib/jquery.cookie.js" type="text/javascript"></script>
<script src="<?=IMG_URL?>js/lib/jquery.treeview.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$('#menu').treeview();
})
</script>
</head>

<body>
<div  class="head">
	<div class="top">
		<div class="logo">Caitupian</div>
	</div>
</div>
<div  class="left">
	<div id="menubox" class="menubox">
		<ul id="menu">
			<li><span class="file"><a href="<?=url('caitu/mission/add')?>" target="main">添加任务</a></span></li>
			<li><span class="folder">采集</span>
				<ul>
					<li><span class="file"><a href="<?=url('caitu/mission/show')?>" target="main">任务</a></span></li>
					<li><span class="folder"><a href="<?=url('caitu/content/index')?>" target="main">列表</a></span>
					<ul>
					<?php foreach ($missions as $m):?>
						<li><span class="file"><a href="<?=url('caitu/content/index',array('missionid'=>$m['missionid']))?>" target="main"><?=$m['name']?></a></span></li>
					<?php endforeach;?>
					</ul>
					</li>
					<li><span class="file"><a href="<?=url('caitu/caitu/contents')?>" target="main">文章</a></span></li>
				</ul>
			</li>
			<li><span class="file"><a href="<?=url('caitu/setting/index')?>" target="main">配置</a></span></li>
		</ul>
	</div>
</div>
<div  class="right">
	<div class="mainbox">
		<iframe id="main" frameborder="0" src="<?=url('caitu/mission/show')?>" name="main"></iframe>
	</div>
</div>
<?php $this->display('footer');
